home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Resources
/
Burning & Media
/
GB-PVR 1.2.13
/
GBPVR10213.msi
/
Cabs.w1.cab
/
Ajax2.js527
< prev
next >
Wrap
Text File
|
2008-02-23
|
1KB
|
70 lines
var intervalID;
var intervalReminderID;
var intervalStreamerID;
function GetServerTime()
{
intervalID = setInterval("RunTime();",5000);
}
function RunTime()
{
gbweb.classes.Ajax_Calls2.GetServerTime(CallbackFunc);
}
function CallbackFunc(value)
{
document.getElementById("serverTime").innerHTML="Server Time: " + value;
}
function GetReminders()
{
intervalReminderID = setInterval("GetReminder();",6000);
}
function GetReminder()
{
gbweb.classes.Ajax_Calls2.GetReminders(CallbackReminderFunc);
}
function CallbackReminderFunc(value)
{
if (value != "")
{
document.getElementById("remDiv").innerHTML = "Reminders: ";
document.getElementById("REMINDER_DIV").innerHTML = value;
document.getElementById("FIXED_DIV").innerHTML = value;
}
else
{
document.getElementById("remDiv").innerHTML = "";
document.getElementById("REMINDER_DIV").innerHTML = "";
document.getElementById("FIXED_DIV").innerHTML = "";
}
}
function GetStreamStatus()
{
intervalStreamerID = setInterval("StreamCheck();",30000);
}
function StreamCheck()
{
gbweb.classes.Ajax_Calls2.GetStreamerStatus(CallbackStreamFunc);
}
function CallbackStreamFunc(value)
{
if (value != "")
{
document.getElementById("streamMessage").innerHTML = "Streaming is Active";
}
else
{
document.getElementById("streamMessage").innerHTML = "";
}
}